.main-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 64px;
    background-color: #1890ff;
    background-image: linear-gradient(135deg, #1890ff 0%, #39c0ff 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    
    .logo {
      font-size: 20px;
      font-weight: bold;
      letter-spacing: 0.5px;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      
      @media (max-width: 576px) {
        font-size: 16px;
      }
    }
    
    .user-info {
      display: flex;
      align-items: center;
      
      span {
        margin-right: 15px;
        white-space: nowrap;
        
        @media (max-width: 576px) {
          font-size: 14px;
          margin-right: 8px;
        }
      }
      
      .logout-btn {
        padding: 6px 12px;
        border: 1px solid rgba(255, 255, 255, 0.8);
        background: transparent;
        color: #fff;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        white-space: nowrap;
        
        .anticon {
          margin-right: 6px;
        }
        
        &:hover {
          background-color: rgba(255, 255, 255, 0.2);
          border-color: #fff;
          transform: translateY(-1px);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        &:active {
          transform: translateY(0);
          box-shadow: none;
        }
        
        @media (max-width: 576px) {
          padding: 4px 8px;
          font-size: 12px;
        }
      }
    }
  }
  
  .container {
    display: flex;
    flex: 1;
    
    .sidebar {
      width: 220px;
      background-color: #fff;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
      transition: all 0.3s ease;
      z-index: 5;
      border-right: 1px solid #f0f0f0;
      
      @media (max-width: 768px) {
        width: 180px;
      }
      
      @media (max-width: 576px) {
        width: 64px;
      }
      
      .nav-menu {
        padding: 16px 0;
        
        ul {
          list-style: none;
          padding: 0;
          margin: 0;
          
          li {
            margin: 4px 8px;
            position: relative;
            border-radius: 4px;
            overflow: hidden;
            
            a {
              display: flex;
              align-items: center;
              padding: 12px 16px;
              color: #595959;
              text-decoration: none;
              font-size: 15px;
              transition: all 0.3s;
              border-left: 3px solid transparent;
              
              span {
                margin-left: 12px;
                white-space: nowrap;
                
                @media (max-width: 576px) {
                  display: none;
                }
              }
              
              .anticon {
                font-size: 16px;
                min-width: 18px;
                transition: transform 0.3s ease;
                
                @media (max-width: 576px) {
                  font-size: 18px;
                  margin: 0 auto;
                }
              }
              
              &:hover {
                background-color: #e6f7ff;
                color: #1890ff;
                
                .anticon {
                  transform: scale(1.1);
                }
              }
              
              @media (max-width: 576px) {
                padding: 12px 0;
                justify-content: center;
              }
            }
            
            &.active {
              a {
                background-color: #e6f7ff;
                color: #1890ff;
                border-left: 3px solid #1890ff;
                font-weight: 500;
                box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
                
                .anticon {
                  color: #1890ff;
                }
                
                @media (max-width: 576px) {
                  border-left: none;
                  border-bottom: 3px solid #1890ff;
                }
              }
            }
          }
        }
      }
    }
    
    .content {
      flex: 1;
      padding: 20px;
      background-color: #f0f2f5;
      min-height: calc(100vh - 64px - 46px); /* header and footer heights */
      overflow-y: auto;
      
      @media (max-width: 576px) {
        padding: 10px;
      }
    }
  }
  
  .footer {
    text-align: center;
    padding: 15px 0;
    background-color: #f0f2f5;
    color: #666;
    border-top: 1px solid #e8e8e8;
    
    @media (max-width: 576px) {
      padding: 10px 0;
      font-size: 12px;
    }
  }
} 